Skip to content

Conversation

@wiegandm
Copy link
Member

What

Adjust the handling of the remote GMP version to detect GMP 22.7 correctly as supported and set the correct gmp_class instead of issuing a confusing UserWarning and falling back to GMPv226

Why

When parsing a warnings.warn( <get_version_response status="200" status_text="OK"><version>22.7</version></get_version_response>, the following warning was displayed:

UserWarning: Remote manager daemon uses a newer GMP version than supported by python-gvm 26.2.0. Please update to a newer release of python-gvm if possible. Remote GMP version is 22.7. Supported GMP versions are 22.4, 22.5, 22.6, 22.7.

References

#1212

Checklist

  • Tests

@github-actions
Copy link

github-actions bot commented Jun 11, 2025

Conventional Commits Report

Type Number
Bug Fixes 2

🚀 Conventional commits found.

Add tests to make sure the detected protocol version and instance is
correct for GMP 22.7.

Also add tests for the expected next protocol version (`22.8`) and a
possible far future version (`22.20`), which should adequately fall back
to the latest current version.
@codecov
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.82%. Comparing base (9cbda51) to head (1db977c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1235      +/-   ##
==========================================
+ Coverage   97.78%   97.82%   +0.03%     
==========================================
  Files          73       73              
  Lines        5112     5114       +2     
  Branches      929      930       +1     
==========================================
+ Hits         4999     5003       +4     
+ Misses         76       75       -1     
+ Partials       37       36       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@wiegandm wiegandm marked this pull request as ready for review June 11, 2025 11:38
@wiegandm wiegandm requested a review from a team as a code owner June 11, 2025 11:38
@bjoernricks bjoernricks added the patch release Create a new patch release after PR is merged label Jun 11, 2025
@bjoernricks bjoernricks merged commit b3017ba into main Jun 11, 2025
24 of 25 checks passed
@bjoernricks bjoernricks deleted the gmpv227_determine_supported_gmp branch June 11, 2025 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch release Create a new patch release after PR is merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants